<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'aman-student-course-details-form',
    'enableAjaxValidation' => false,
        ));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model, 'name_course', array('class' => 'span3', 'maxlength' => 45)); ?>

<?php echo $form->textFieldRow($model, 'enrolment_number', array('class' => 'span3', 'maxlength' => 45)); ?>

<?php echo $form->textFieldRow($model, 'no_student_class', array('class' => 'span3')); ?>

<?php echo $form->textFieldRow($model, 'year_of_study', array('class' => 'span3', 'maxlength' => 45)); ?>
<?php
echo $form->dropDownListRow(
        $model, 'course_type_id', GxHtml::listDataEx(AmanCourseType::model()->findAllAttributes(null, true)), array('class' => 'span3')
);
?>

<?php //echo $form->textFieldRow($model, 'student_details_id', array('class' => 'span3', 'maxlength' => 20)); ?>

<div class="form-actions1">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => $model->isNewRecord ? 'Create' : 'Save',
    ));
    ?>
</div>

<?php $this->endWidget(); ?>
